import express from 'express';
const router = express.Router() //路由模块

router.post('/login', (req, res) => {
    let data = req.body
    console.log(data, 'datadata');

    res.json({
        status: 200,
        message: '登录成功',
        data: data
    })
})

router.post('/register', (req, res) => {
    let data = req.body
    res.json({
        status: 200,
        message: '注册成功',
        data: data
    })
})

export default router;